Detailed tutorial on connecting to the database in Ruby program, ruby Database
This section describes how to use Ruby to access databases. The Ruby DBI module provides database-independent interfaces similar to the Perl DBI module for Ruby
Perl DBI Programming Reading notes, in the original text see:http://www.ibm.com/developerworks/cn/linux/l-cn-perldbi/In order to communicate with the database, the Perl community developed a unified Database communication interface module: DBI. DBI,
This section will show you how to access a database using Ruby. The Ruby DBI module provides a database-independent interface for Ruby scripts similar to the Perl DBI module.
DBI, the Database independent interface, represents a Ruby-independent
PDO Common methods:
Pdo::query () is used primarily for operations (Pdostatement) that have record results returned, especially select operations.
Pdo::exec () is primarily for operations that are returned without a result collection. such as
This article mainly introduces in detail the various use methods of mysql connection methods in PHP, which is a personal summary. if you have any omissions, please let me know. if you need them, please refer to them. Common PDO methods:
PDO: query
This article mainly introduces in detail the various use methods of mysql connection methods in PHP, which is a personal summary. if you have any omissions, please let me know. if you need them, please refer to them. Common PDO methods:
PDO: query
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.